package com.example.lay.intent;

import android.app.Activity;
import android.content.ComponentName;
import android.os.Bundle;
import android.widget.TextView;

/**
 * Created by Lay on 2014/12/7.
 */
public class SecondActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.second_layout);
        ComponentName comp = getIntent().getComponent();
        ((TextView)findViewById(R.id.txt)).setText("类名："+comp.getClassName()+"\n包名："+comp.getPackageName());
    }
}
